﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    
    xmlns:wf="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
    xmlns:UIPrototyper="clr-namespace:UIPrototyper"    
    xmlns:d="http://schemas.microsoft.com/expression/blend/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
    x:Class="UIPrototyper.MainUI"    
    Title="MainUI" Height="600" Width="800" x:Name="Window" Loaded="Window_Loaded"
    MouseUp="Window_MouseUp" Background="#FF808080" xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero">
    <Window.Resources>
        <Style x:Key="GridSplitterPreviewStyle">
            <Setter Property="Control.Template">
                <Setter.Value>
                    <ControlTemplate>
                        <Rectangle Fill="#80000000"/>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="Divisor" TargetType="{x:Type GridSplitter}">
            <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
            <Setter Property="PreviewStyle" Value="{StaticResource GridSplitterPreviewStyle}"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type GridSplitter}">
                        <Border BorderThickness="{TemplateBinding BorderThickness}" Background="#FF808080"/>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="btopen" BasedOn="{x:Null}" TargetType="{x:Type Button}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type Button}">
                        <ControlTemplate.Resources>
                            <Storyboard x:Key="Over">
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)" RepeatBehavior="Forever">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF7B98B5"/>
                                    <SplineColorKeyFrame KeyTime="00:00:01" Value="#FFDCEEFF"/>
                                    <SplineColorKeyFrame KeyTime="00:00:02" Value="#FF7B98B5"/>
                                </ColorAnimationUsingKeyFrames>
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" RepeatBehavior="Forever">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF33495E"/>
                                    <SplineColorKeyFrame KeyTime="00:00:01" Value="#FF73A4D2"/>
                                    <SplineColorKeyFrame KeyTime="00:00:02" Value="#FF33495E"/>
                                </ColorAnimationUsingKeyFrames>
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" RepeatBehavior="Forever">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF000000"/>
                                    <SplineColorKeyFrame KeyTime="00:00:01" Value="#FF2D3945"/>
                                    <SplineColorKeyFrame KeyTime="00:00:02" Value="#FF000000"/>
                                </ColorAnimationUsingKeyFrames>
                            </Storyboard>
                            <Storyboard x:Key="Stroke">
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF707070"/>
                                    <SplineColorKeyFrame KeyTime="00:00:01" Value="#FFC7F8FF"/>
                                </ColorAnimationUsingKeyFrames>
                            </Storyboard>
                            <Storyboard x:Key="Click1">
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Path_Copy1" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#BF000000"/>
                                </ColorAnimationUsingKeyFrames>
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Path_Copy1" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#00000000"/>
                                </ColorAnimationUsingKeyFrames>
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF0F1214"/>
                                </ColorAnimationUsingKeyFrames>
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF353E47"/>
                                </ColorAnimationUsingKeyFrames>
                            </Storyboard>
                        </ControlTemplate.Resources>
                        <Grid x:Name="grid">
                            <Path x:Name="Path" Stretch="Fill" StrokeLineJoin="Round" Stroke="#FF707070" Data="F1 M 266.115,187L 320.115,187C 321.588,187 322.781,188.194 322.781,189.667L 322.781,243.667C 322.781,245.139 321.588,246.333 320.115,246.333L 266.115,246.333C 264.642,246.333 263.448,245.139 263.448,243.667L 263.448,189.667C 263.448,188.194 264.642,187 266.115,187 Z " Margin="0,0,0,0" StrokeThickness="1">
                                <Path.Fill>
                                    <LinearGradientBrush EndPoint="0.496548,0.0128917" StartPoint="0.496548,0.988029">
                                        <GradientStop Color="#FF000000" Offset="0"/>
                                        <GradientStop Color="#FF33495E" Offset="0.278539"/>
                                        <GradientStop Color="#FF7B98B5" Offset="0.296804"/>
                                        <GradientStop Color="#FF181818" Offset="1"/>
                                    </LinearGradientBrush>
                                </Path.Fill>
                            </Path>
                            <Path x:Name="Path_Copy1" Stretch="Fill" Data="F1 M 266.212,186.907L 320.018,186.907C 321.49,186.907 322.684,188.101 322.684,189.574L 322.684,207.444C 322.684,208.917 321.49,210.111 320.018,210.111L 266.212,210.111C 264.739,210.111 263.545,208.917 263.545,207.444L 263.545,189.574C 263.545,188.101 264.739,186.907 266.212,186.907 Z " Margin="0.5,0.5,0.5,24.333" VerticalAlignment="Stretch" Height="Auto">
                                <Path.Fill>
                                    <LinearGradientBrush StartPoint="0.517483,0.405595" EndPoint="0.517483,-0.00699292">
                                        <GradientStop Color="#00FFFFFF" Offset="0"/>
                                        <GradientStop Color="#BFFFFFFF" Offset="1"/>
                                    </LinearGradientBrush>
                                </Path.Fill>
                            </Path>
                            <Image Margin="6,8,6,2" Source="Images\image0.png"/>
                        </Grid>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsPressed" Value="True">
                                <Trigger.EnterActions>
                                    <BeginStoryboard Storyboard="{StaticResource Click1}" x:Name="Click1_BeginStoryboard"/>
                                </Trigger.EnterActions>
                                <Trigger.ExitActions>
                                    <StopStoryboard BeginStoryboardName="Click1_BeginStoryboard"/>
                                </Trigger.ExitActions>
                            </Trigger>
                            <Trigger Property="IsMouseOver" SourceName="grid" Value="True">
                                <Trigger.EnterActions>
                                    <BeginStoryboard x:Name="Over_BeginStoryboard" Storyboard="{StaticResource Over}"/>
                                    <BeginStoryboard Storyboard="{StaticResource Stroke}" x:Name="Stroke_BeginStoryboard"/>
                                </Trigger.EnterActions>
                                <Trigger.ExitActions>
                                    <StopStoryboard BeginStoryboardName="Over_BeginStoryboard"/>
                                    <StopStoryboard BeginStoryboardName="Over_BeginStoryboard"/>
                                    <StopStoryboard BeginStoryboardName="Stroke_BeginStoryboard"/>
                                </Trigger.ExitActions>
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Storyboard x:Key="Over">
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF7B98B5"/>
                <SplineColorKeyFrame KeyTime="00:00:01" Value="#FF9CC1E5"/>
                <SplineColorKeyFrame KeyTime="00:00:02" Value="#FF7B98B5"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF33495E"/>
                <SplineColorKeyFrame KeyTime="00:00:01" Value="#FF4F7191"/>
                <SplineColorKeyFrame KeyTime="00:00:02" Value="#FF33495E"/>
            </ColorAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="Click1">
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Path_Copy1" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#BF000000"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Path_Copy1" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#00000000"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF0F1214"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF353E47"/>
            </ColorAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="Over2">
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)" RepeatBehavior="Forever">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF7B98B5"/>
                <SplineColorKeyFrame KeyTime="00:00:01" Value="#FFDCEEFF"/>
                <SplineColorKeyFrame KeyTime="00:00:02" Value="#FF7B98B5"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" RepeatBehavior="Forever">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF33495E"/>
                <SplineColorKeyFrame KeyTime="00:00:01" Value="#FF73A4D2"/>
                <SplineColorKeyFrame KeyTime="00:00:02" Value="#FF33495E"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" RepeatBehavior="Forever">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF000000"/>
                <SplineColorKeyFrame KeyTime="00:00:01" Value="#FF2D3945"/>
                <SplineColorKeyFrame KeyTime="00:00:02" Value="#FF000000"/>
            </ColorAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="Stroke">
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF707070"/>
                <SplineColorKeyFrame KeyTime="00:00:01" Value="#FFC7F8FF"/>
            </ColorAnimationUsingKeyFrames>
        </Storyboard>
        <Style x:Key="novo" BasedOn="{x:Null}" TargetType="{x:Type Button}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type Button}">
                        <ControlTemplate.Resources>
                            <Storyboard x:Key="Over">
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)" RepeatBehavior="Forever">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF7B98B5"/>
                                    <SplineColorKeyFrame KeyTime="00:00:01" Value="#FFDCEEFF"/>
                                    <SplineColorKeyFrame KeyTime="00:00:02" Value="#FF7B98B5"/>
                                </ColorAnimationUsingKeyFrames>
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" RepeatBehavior="Forever">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF33495E"/>
                                    <SplineColorKeyFrame KeyTime="00:00:01" Value="#FF73A4D2"/>
                                    <SplineColorKeyFrame KeyTime="00:00:02" Value="#FF33495E"/>
                                </ColorAnimationUsingKeyFrames>
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" RepeatBehavior="Forever">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF000000"/>
                                    <SplineColorKeyFrame KeyTime="00:00:01" Value="#FF2D3945"/>
                                    <SplineColorKeyFrame KeyTime="00:00:02" Value="#FF000000"/>
                                </ColorAnimationUsingKeyFrames>
                            </Storyboard>
                            <Storyboard x:Key="Stroke">
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF707070"/>
                                    <SplineColorKeyFrame KeyTime="00:00:01" Value="#FFC7F8FF"/>
                                </ColorAnimationUsingKeyFrames>
                            </Storyboard>
                            <Storyboard x:Key="Click1">
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Path_Copy1" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#BF000000"/>
                                </ColorAnimationUsingKeyFrames>
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Path_Copy1" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#00000000"/>
                                </ColorAnimationUsingKeyFrames>
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF0F1214"/>
                                </ColorAnimationUsingKeyFrames>
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF353E47"/>
                                </ColorAnimationUsingKeyFrames>
                            </Storyboard>
                        </ControlTemplate.Resources>
                        <Grid x:Name="grid">
                            <Path x:Name="Path" Stretch="Fill" StrokeLineJoin="Round" Stroke="#FF707070" Data="F1 M 266.115,187L 320.115,187C 321.588,187 322.781,188.194 322.781,189.667L 322.781,243.667C 322.781,245.139 321.588,246.333 320.115,246.333L 266.115,246.333C 264.642,246.333 263.448,245.139 263.448,243.667L 263.448,189.667C 263.448,188.194 264.642,187 266.115,187 Z " Margin="0,0,0,0" StrokeThickness="1">
                                <Path.Fill>
                                    <LinearGradientBrush EndPoint="0.496548,0.0128917" StartPoint="0.496548,0.988029">
                                        <GradientStop Color="#FF000000" Offset="0"/>
                                        <GradientStop Color="#FF33495E" Offset="0.278539"/>
                                        <GradientStop Color="#FF7B98B5" Offset="0.296804"/>
                                        <GradientStop Color="#FF181818" Offset="1"/>
                                    </LinearGradientBrush>
                                </Path.Fill>
                            </Path>
                            <Path x:Name="Path_Copy1" Stretch="Fill" Data="F1 M 266.212,186.907L 320.018,186.907C 321.49,186.907 322.684,188.101 322.684,189.574L 322.684,207.444C 322.684,208.917 321.49,210.111 320.018,210.111L 266.212,210.111C 264.739,210.111 263.545,208.917 263.545,207.444L 263.545,189.574C 263.545,188.101 264.739,186.907 266.212,186.907 Z " Margin="0.5,0.5,0.5,24.333" VerticalAlignment="Stretch" Height="Auto">
                                <Path.Fill>
                                    <LinearGradientBrush StartPoint="0.517483,0.405595" EndPoint="0.517483,-0.00699292">
                                        <GradientStop Color="#00FFFFFF" Offset="0"/>
                                        <GradientStop Color="#BFFFFFFF" Offset="1"/>
                                    </LinearGradientBrush>
                                </Path.Fill>
                            </Path>
                            <Image Margin="6,6,6,6"/>
                            <Image Margin="13,8,13,0" Source="Images\Files.png" Stretch="Fill"/>
                        </Grid>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsPressed" Value="True">
                                <Trigger.EnterActions>
                                    <BeginStoryboard Storyboard="{StaticResource Click1}" x:Name="Click1_BeginStoryboard"/>
                                </Trigger.EnterActions>
                                <Trigger.ExitActions>
                                    <StopStoryboard BeginStoryboardName="Click1_BeginStoryboard"/>
                                </Trigger.ExitActions>
                            </Trigger>
                            <Trigger Property="IsMouseOver" SourceName="grid" Value="True">
                                <Trigger.EnterActions>
                                    <BeginStoryboard x:Name="Over_BeginStoryboard" Storyboard="{StaticResource Over}"/>
                                    <BeginStoryboard Storyboard="{StaticResource Stroke}" x:Name="Stroke_BeginStoryboard"/>
                                </Trigger.EnterActions>
                                <Trigger.ExitActions>
                                    <StopStoryboard BeginStoryboardName="Over_BeginStoryboard"/>
                                    <StopStoryboard BeginStoryboardName="Over_BeginStoryboard"/>
                                    <StopStoryboard BeginStoryboardName="Stroke_BeginStoryboard"/>
                                </Trigger.ExitActions>
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Storyboard x:Key="Over3">
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)" RepeatBehavior="Forever">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF7B98B5"/>
                <SplineColorKeyFrame KeyTime="00:00:01" Value="#FFDCEEFF"/>
                <SplineColorKeyFrame KeyTime="00:00:02" Value="#FF7B98B5"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" RepeatBehavior="Forever">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF33495E"/>
                <SplineColorKeyFrame KeyTime="00:00:01" Value="#FF73A4D2"/>
                <SplineColorKeyFrame KeyTime="00:00:02" Value="#FF33495E"/>
            </ColorAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" RepeatBehavior="Forever">
                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF000000"/>
                <SplineColorKeyFrame KeyTime="00:00:01" Value="#FF2D3945"/>
                <SplineColorKeyFrame KeyTime="00:00:02" Value="#FF000000"/>
            </ColorAnimationUsingKeyFrames>
        </Storyboard>
        <Style x:Key="Salvar" BasedOn="{x:Null}" TargetType="{x:Type Button}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type Button}">
                        <ControlTemplate.Resources>
                            <Storyboard x:Key="Over">
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)" RepeatBehavior="Forever">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF7B98B5"/>
                                    <SplineColorKeyFrame KeyTime="00:00:01" Value="#FFDCEEFF"/>
                                    <SplineColorKeyFrame KeyTime="00:00:02" Value="#FF7B98B5"/>
                                </ColorAnimationUsingKeyFrames>
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" RepeatBehavior="Forever">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF33495E"/>
                                    <SplineColorKeyFrame KeyTime="00:00:01" Value="#FF73A4D2"/>
                                    <SplineColorKeyFrame KeyTime="00:00:02" Value="#FF33495E"/>
                                </ColorAnimationUsingKeyFrames>
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" RepeatBehavior="Forever">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF000000"/>
                                    <SplineColorKeyFrame KeyTime="00:00:01" Value="#FF2D3945"/>
                                    <SplineColorKeyFrame KeyTime="00:00:02" Value="#FF000000"/>
                                </ColorAnimationUsingKeyFrames>
                            </Storyboard>
                            <Storyboard x:Key="Stroke">
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF707070"/>
                                    <SplineColorKeyFrame KeyTime="00:00:01" Value="#FFC7F8FF"/>
                                </ColorAnimationUsingKeyFrames>
                            </Storyboard>
                            <Storyboard x:Key="Click1">
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Path_Copy1" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#BF000000"/>
                                </ColorAnimationUsingKeyFrames>
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Path_Copy1" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#00000000"/>
                                </ColorAnimationUsingKeyFrames>
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF0F1214"/>
                                </ColorAnimationUsingKeyFrames>
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF353E47"/>
                                </ColorAnimationUsingKeyFrames>
                            </Storyboard>
                        </ControlTemplate.Resources>
                        <Grid x:Name="grid">
                            <Path x:Name="Path" Stretch="Fill" StrokeLineJoin="Round" Stroke="#FF707070" Data="F1 M 266.115,187L 320.115,187C 321.588,187 322.781,188.194 322.781,189.667L 322.781,243.667C 322.781,245.139 321.588,246.333 320.115,246.333L 266.115,246.333C 264.642,246.333 263.448,245.139 263.448,243.667L 263.448,189.667C 263.448,188.194 264.642,187 266.115,187 Z " Margin="0,0,0,0" StrokeThickness="1">
                                <Path.Fill>
                                    <LinearGradientBrush EndPoint="0.496548,0.0128917" StartPoint="0.496548,0.988029">
                                        <GradientStop Color="#FF000000" Offset="0"/>
                                        <GradientStop Color="#FF33495E" Offset="0.278539"/>
                                        <GradientStop Color="#FF7B98B5" Offset="0.296804"/>
                                        <GradientStop Color="#FF181818" Offset="1"/>
                                    </LinearGradientBrush>
                                </Path.Fill>
                            </Path>
                            <Path x:Name="Path_Copy1" Stretch="Fill" Data="F1 M 266.212,186.907L 320.018,186.907C 321.49,186.907 322.684,188.101 322.684,189.574L 322.684,207.444C 322.684,208.917 321.49,210.111 320.018,210.111L 266.212,210.111C 264.739,210.111 263.545,208.917 263.545,207.444L 263.545,189.574C 263.545,188.101 264.739,186.907 266.212,186.907 Z " Margin="0.5,0.5,0.5,24.333" VerticalAlignment="Stretch" Height="Auto">
                                <Path.Fill>
                                    <LinearGradientBrush StartPoint="0.517483,0.405595" EndPoint="0.517483,-0.00699292">
                                        <GradientStop Color="#00FFFFFF" Offset="0"/>
                                        <GradientStop Color="#BFFFFFFF" Offset="1"/>
                                    </LinearGradientBrush>
                                </Path.Fill>
                            </Path>
                            <Image Margin="6,8,6,0" Source="Images\AQUA-ICONS-DRIVE-FLOPPY.png" Panel.ZIndex="0"/>
                        </Grid>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsPressed" Value="True">
                                <Trigger.EnterActions>
                                    <BeginStoryboard Storyboard="{StaticResource Click1}" x:Name="Click1_BeginStoryboard"/>
                                </Trigger.EnterActions>
                                <Trigger.ExitActions>
                                    <StopStoryboard BeginStoryboardName="Click1_BeginStoryboard"/>
                                </Trigger.ExitActions>
                            </Trigger>
                            <Trigger Property="IsMouseOver" SourceName="grid" Value="True">
                                <Trigger.EnterActions>
                                    <BeginStoryboard x:Name="Over_BeginStoryboard" Storyboard="{StaticResource Over}"/>
                                    <BeginStoryboard Storyboard="{StaticResource Stroke}" x:Name="Stroke_BeginStoryboard"/>
                                </Trigger.EnterActions>
                                <Trigger.ExitActions>
                                    <StopStoryboard BeginStoryboardName="Over_BeginStoryboard"/>
                                    <StopStoryboard BeginStoryboardName="Over_BeginStoryboard"/>
                                    <StopStoryboard BeginStoryboardName="Stroke_BeginStoryboard"/>
                                </Trigger.ExitActions>
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <LinearGradientBrush x:Key="MenuBackground" EndPoint="0,1" StartPoint="0,0">
            <GradientStop Color="#F6F6F6" Offset="0.25"/>
            <GradientStop Color="#EAE8E8" Offset="0.25"/>
            <GradientStop Color="#DCD9D9" Offset="0.8"/>
            <GradientStop Color="White" Offset="1"/>
        </LinearGradientBrush>
        <Style x:Key="Menu" TargetType="{x:Type Menu}">
            <Setter Property="Background" Value="{StaticResource MenuBackground}"/>
            <Setter Property="FontFamily" Value="{DynamicResource {x:Static SystemFonts.MenuFontFamilyKey}}"/>
            <Setter Property="FontSize" Value="{DynamicResource {x:Static SystemFonts.MenuFontSizeKey}}"/>
            <Setter Property="FontStyle" Value="{DynamicResource {x:Static SystemFonts.MenuFontStyleKey}}"/>
            <Setter Property="FontWeight" Value="{DynamicResource {x:Static SystemFonts.MenuFontWeightKey}}"/>
            <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.MenuTextBrushKey}}"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type Menu}">
                        <Border SnapsToDevicePixels="true" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}" Background="{x:Null}">
                            <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Geometry x:Key="Checkmark">M 0,5.1 L 1.7,5.2 L 3.4,7.1 L 8,0.4 L 9.2,0 L 3.3,10.8 Z</Geometry>
        <LinearGradientBrush x:Key="MenuItemSelectionFill" EndPoint="0,1" StartPoint="0,0">
            <GradientStop Color="#34C5EBFF" Offset="0"/>
            <GradientStop Color="#3481D8FF" Offset="1"/>
        </LinearGradientBrush>
        <ControlTemplate x:Key="{ComponentResourceKey ResourceId=SubmenuItemTemplateKey, TypeInTargetAssembly={x:Type MenuItem}}" TargetType="{x:Type MenuItem}">
            <Grid SnapsToDevicePixels="true">
                <Rectangle x:Name="Bg" Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="1" RadiusX="2" RadiusY="2"/>
                <Rectangle Margin="1" x:Name="InnerBorder" RadiusX="2" RadiusY="2"/>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition MinWidth="24" Width="Auto" SharedSizeGroup="MenuItemIconColumnGroup"/>
                        <ColumnDefinition Width="4"/>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="37"/>
                        <ColumnDefinition Width="Auto" SharedSizeGroup="MenuItemIGTColumnGroup"/>
                        <ColumnDefinition Width="17"/>
                    </Grid.ColumnDefinitions>
                    <ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Margin="1" x:Name="Icon" VerticalAlignment="Center" ContentSource="Icon"/>
                    <Border Visibility="Hidden" Margin="1" x:Name="GlyphPanel" Width="22" Height="22" Background="#E6EFF4" BorderBrush="#CDD3E6" BorderThickness="1" CornerRadius="3">
                        <Path FlowDirection="LeftToRight" x:Name="Glyph" Width="9" Height="11" Fill="#0C12A1" Data="{StaticResource Checkmark}"/>
                    </Border>
                    <ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Margin="{TemplateBinding Padding}" Grid.Column="2" ContentSource="Header" RecognizesAccessKey="True"/>
                    <TextBlock Margin="{TemplateBinding Padding}" Grid.Column="4" Text="{TemplateBinding InputGestureText}"/>
				</Grid>
            </Grid>
            <ControlTemplate.Triggers>
                <Trigger Property="Icon" Value="{x:Null}">
                    <Setter Property="Visibility" TargetName="Icon" Value="Collapsed"/>
                </Trigger>
                <Trigger Property="IsChecked" Value="true">
                    <Setter Property="Visibility" TargetName="GlyphPanel" Value="Visible"/>
                    <Setter Property="Visibility" TargetName="Icon" Value="Collapsed"/>
                </Trigger>
                <Trigger Property="IsHighlighted" Value="true">
                    <Setter Property="Fill" TargetName="Bg" Value="{StaticResource MenuItemSelectionFill}"/>
                    <Setter Property="Stroke" TargetName="Bg" Value="#8071CBF1"/>
                    <Setter Property="Stroke" TargetName="InnerBorder" Value="#40FFFFFF"/>
                </Trigger>
                <Trigger Property="IsEnabled" Value="false">
                    <Setter Property="Foreground" Value="#FF9A9A9A"/>
                    <Setter Property="Background" TargetName="GlyphPanel" Value="#EEE9E9"/>
                    <Setter Property="BorderBrush" TargetName="GlyphPanel" Value="#DBD6D6"/>
                    <Setter Property="Fill" TargetName="Glyph" Value="#848589"/>
                </Trigger>
            </ControlTemplate.Triggers>
        </ControlTemplate>
        <ControlTemplate x:Key="{ComponentResourceKey ResourceId=SubmenuContent, TypeInTargetAssembly={x:Type FrameworkElement}}" TargetType="{x:Type ContentControl}">
            <Border Background="#F5F5F5" BorderBrush="#FF959595" BorderThickness="1">
                <Grid>
                    <Rectangle HorizontalAlignment="Left" Margin="2" Width="28" Fill="#F1F1F1" RadiusX="2" RadiusY="2"/>
                    <Rectangle HorizontalAlignment="Left" Margin="30,2,0,2" Width="1" Fill="#E2E3E3"/>
                    <Rectangle HorizontalAlignment="Left" Margin="31,2,0,2" Width="1" Fill="White"/>
                    <ContentPresenter Margin="1,0" Grid.ColumnSpan="2"/>
                </Grid>
            </Border>
        </ControlTemplate>
        <MenuScrollingVisibilityConverter x:Key="MenuScrollingVisibilityConverter"/>
        <Style x:Key="MenuScrollButton" BasedOn="{x:Null}" TargetType="{x:Type RepeatButton}">
            <Setter Property="ClickMode" Value="Hover"/>
            <Setter Property="MinWidth" Value="0"/>
            <Setter Property="MinHeight" Value="0"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type RepeatButton}">
                        <DockPanel SnapsToDevicePixels="true" Background="Transparent">
                            <Rectangle x:Name="R1" Width="1" Fill="Transparent" DockPanel.Dock="Right"/>
                            <Rectangle x:Name="B1" Height="1" Fill="Transparent" DockPanel.Dock="Bottom"/>
                            <Rectangle x:Name="L1" Width="1" Fill="Transparent" DockPanel.Dock="Left"/>
                            <Rectangle x:Name="T1" Height="1" Fill="Transparent" DockPanel.Dock="Top"/>
                            <ContentPresenter HorizontalAlignment="Center" Margin="2,2,2,2" x:Name="ContentContainer" VerticalAlignment="Center"/>
                        </DockPanel>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsPressed" Value="true">
                                <Setter Property="Fill" TargetName="R1" Value="{DynamicResource {x:Static SystemColors.ControlLightLightBrushKey}}"/>
                                <Setter Property="Fill" TargetName="B1" Value="{DynamicResource {x:Static SystemColors.ControlLightLightBrushKey}}"/>
                                <Setter Property="Fill" TargetName="L1" Value="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}"/>
                                <Setter Property="Fill" TargetName="T1" Value="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}"/>
                                <Setter Property="Margin" TargetName="ContentContainer" Value="3,3,1,1"/>
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Geometry x:Key="UpArrow">M 0,4 L 3.5,0 L 7,4 Z</Geometry>
        <Geometry x:Key="DownArrow">M 0,0 L 3.5,4 L 7,0 Z</Geometry>
        <Style x:Key="{ComponentResourceKey ResourceId=MenuScrollViewer, TypeInTargetAssembly={x:Type FrameworkElement}}" BasedOn="{x:Null}" TargetType="{x:Type ScrollViewer}">
            <Setter Property="HorizontalScrollBarVisibility" Value="Hidden"/>
            <Setter Property="VerticalScrollBarVisibility" Value="Auto"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type ScrollViewer}">
                        <Grid SnapsToDevicePixels="true">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*"/>
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <Border Grid.Column="0" Grid.Row="1">
                                <ScrollContentPresenter Margin="{TemplateBinding Padding}"/>
                            </Border>
                            <RepeatButton Focusable="false" Style="{StaticResource MenuScrollButton}" Command="{x:Static ScrollBar.LineUpCommand}" CommandTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}" Grid.Column="0" Grid.Row="0">
                                <RepeatButton.Visibility>
                                    <MultiBinding FallbackValue="Visibility.Collapsed" Converter="{StaticResource MenuScrollingVisibilityConverter}" ConverterParameter="0">
                                        <Binding Path="ComputedVerticalScrollBarVisibility" RelativeSource="{RelativeSource TemplatedParent}"/>
                                        <Binding Path="VerticalOffset" RelativeSource="{RelativeSource TemplatedParent}"/>
                                        <Binding Path="ExtentHeight" RelativeSource="{RelativeSource TemplatedParent}"/>
                                        <Binding Path="ViewportHeight" RelativeSource="{RelativeSource TemplatedParent}"/>
                                    </MultiBinding>
                                </RepeatButton.Visibility>
                                <Path Fill="{DynamicResource {x:Static SystemColors.MenuTextBrushKey}}" Data="{StaticResource UpArrow}"/>
                            </RepeatButton>
                            <RepeatButton Focusable="false" Style="{StaticResource MenuScrollButton}" Command="{x:Static ScrollBar.LineDownCommand}" CommandTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}" Grid.Column="0" Grid.Row="2">
                                <RepeatButton.Visibility>
                                    <MultiBinding FallbackValue="Visibility.Collapsed" Converter="{StaticResource MenuScrollingVisibilityConverter}" ConverterParameter="100">
                                        <Binding Path="ComputedVerticalScrollBarVisibility" RelativeSource="{RelativeSource TemplatedParent}"/>
                                        <Binding Path="VerticalOffset" RelativeSource="{RelativeSource TemplatedParent}"/>
                                        <Binding Path="ExtentHeight" RelativeSource="{RelativeSource TemplatedParent}"/>
                                        <Binding Path="ViewportHeight" RelativeSource="{RelativeSource TemplatedParent}"/>
                                    </MultiBinding>
                                </RepeatButton.Visibility>
                                <Path Fill="{DynamicResource {x:Static SystemColors.MenuTextBrushKey}}" Data="{StaticResource DownArrow}"/>
                            </RepeatButton>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <LinearGradientBrush x:Key="MenuItemPressedFill" EndPoint="0,1" StartPoint="0,0">
            <GradientStop Color="#28717070" Offset="0"/>
            <GradientStop Color="#50717070" Offset="0.75"/>
            <GradientStop Color="#90717070" Offset="1"/>
        </LinearGradientBrush>
        <ControlTemplate x:Key="{ComponentResourceKey ResourceId=TopLevelHeaderTemplateKey, TypeInTargetAssembly={x:Type MenuItem}}" TargetType="{x:Type MenuItem}">
            <Grid SnapsToDevicePixels="true">
                <Rectangle x:Name="OuterBorder" RadiusX="2" RadiusY="2"/>
                <Rectangle Margin="1" x:Name="Bg" Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="1" RadiusX="1" RadiusY="1"/>
                <Rectangle Margin="2" x:Name="InnerBorder"/>
                <DockPanel x:Name="dockPanel">
                    <ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Margin="4,0,6,0" x:Name="Icon" VerticalAlignment="Center" ContentSource="Icon"/>
                    <Path Visibility="Collapsed" FlowDirection="LeftToRight" Margin="7,0,0,0" x:Name="GlyphPanel" VerticalAlignment="Center" Fill="{TemplateBinding Foreground}" Data="{StaticResource Checkmark}"/>
                    <ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Margin="{TemplateBinding Padding}" ContentSource="Header" RecognizesAccessKey="True"/>
                </DockPanel>
                <Popup Focusable="false" AllowsTransparency="true" HorizontalOffset="1" IsOpen="{Binding Path=IsSubmenuOpen, RelativeSource={RelativeSource TemplatedParent}}" Placement="Bottom" PopupAnimation="{DynamicResource {x:Static SystemParameters.MenuPopupAnimationKey}}" VerticalOffset="-1" x:Name="PART_Popup">
                    <Microsoft_Windows_Themes:SystemDropShadowChrome x:Name="Shdw" Color="Transparent">
                        <ContentControl IsTabStop="false" Template="{DynamicResource {ComponentResourceKey ResourceId=SubmenuContent, TypeInTargetAssembly={x:Type FrameworkElement}}}" x:Name="SubMenuBorder">
                            <ScrollViewer Style="{DynamicResource {ComponentResourceKey ResourceId=MenuScrollViewer, TypeInTargetAssembly={x:Type FrameworkElement}}}" CanContentScroll="true">
                                <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Margin="2" Grid.IsSharedSizeScope="true" KeyboardNavigation.DirectionalNavigation="Cycle" KeyboardNavigation.TabNavigation="Cycle"/>
                            </ScrollViewer>
                        </ContentControl>
                    </Microsoft_Windows_Themes:SystemDropShadowChrome>
                </Popup>
            </Grid>
            <ControlTemplate.Triggers>
                <Trigger Property="IsSuspendingPopupAnimation" Value="true">
                    <Setter Property="PopupAnimation" TargetName="PART_Popup" Value="None"/>
                </Trigger>
                <Trigger Property="Icon" Value="{x:Null}">
                    <Setter Property="Visibility" TargetName="Icon" Value="Collapsed"/>
                </Trigger>
                <Trigger Property="IsChecked" Value="true">
                    <Setter Property="Visibility" TargetName="GlyphPanel" Value="Visible"/>
                    <Setter Property="Visibility" TargetName="Icon" Value="Collapsed"/>
                    <Setter Property="Width" TargetName="Shdw" Value="126.523"/>
                    <Setter Property="Height" TargetName="Shdw" Value="80"/>
                </Trigger>
                <Trigger Property="HasDropShadow" SourceName="PART_Popup" Value="true">
                    <Setter Property="Margin" TargetName="Shdw" Value="0,0,5,5"/>
                    <Setter Property="Color" TargetName="Shdw" Value="#71000000"/>
                </Trigger>
                <Trigger Property="IsHighlighted" Value="true"/>
                <Trigger Property="IsKeyboardFocused" Value="true">
                    <Setter TargetName="Bg" Value="{StaticResource MenuItemPressedFill}" Property="Fill"/>
                </Trigger>
                <Trigger Property="IsSubmenuOpen" Value="true">
                    <Setter TargetName="Bg" Value="{StaticResource MenuItemPressedFill}" Property="Fill"/>
                    <Setter TargetName="Bg" Property="RadiusX" Value="0"/>
                    <Setter TargetName="Bg" Property="RadiusY" Value="0"/>
                    <Setter Property="Margin" TargetName="InnerBorder" Value="2,0,2,3"/>
                </Trigger>
                <Trigger Property="IsEnabled" Value="false">
                    <Setter Property="Foreground" Value="#FF9A9A9A"/>
                    <Setter Property="Fill" TargetName="GlyphPanel" Value="#848589"/>
                    <Setter Property="Margin" TargetName="dockPanel" Value="0,0,0,1"/>
                </Trigger>
            </ControlTemplate.Triggers>
        </ControlTemplate>
        <ControlTemplate x:Key="{ComponentResourceKey ResourceId=TopLevelItemTemplateKey, TypeInTargetAssembly={x:Type MenuItem}}" TargetType="{x:Type MenuItem}">
            <Grid SnapsToDevicePixels="true">
                <Rectangle x:Name="OuterBorder" RadiusX="2" RadiusY="2"/>
                <Rectangle Margin="1" x:Name="Bg" Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="1" RadiusX="1" RadiusY="1"/>
                <Rectangle Margin="2" x:Name="InnerBorder"/>
                <DockPanel>
                    <ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Margin="4,0,6,0" x:Name="Icon" VerticalAlignment="Center" ContentSource="Icon"/>
                    <Path Visibility="Collapsed" FlowDirection="LeftToRight" Margin="7,0,0,0" x:Name="GlyphPanel" VerticalAlignment="Center" Fill="{TemplateBinding Foreground}" Data="{StaticResource Checkmark}"/>
                    <ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Margin="{TemplateBinding Padding}" ContentSource="Header" RecognizesAccessKey="True"/>
                </DockPanel>
            </Grid>
            <ControlTemplate.Triggers>
                <Trigger Property="Icon" Value="{x:Null}">
                    <Setter Property="Visibility" TargetName="Icon" Value="Collapsed"/>
                </Trigger>
                <Trigger Property="IsChecked" Value="true">
                    <Setter Property="Visibility" TargetName="GlyphPanel" Value="Visible"/>
                    <Setter Property="Visibility" TargetName="Icon" Value="Collapsed"/>
                </Trigger>
                <Trigger Property="IsHighlighted" Value="true">
                    <Setter Property="Stroke" TargetName="Bg" Value="#90717070"/>
                    <Setter Property="Stroke" TargetName="OuterBorder" Value="#50FFFFFF"/>
                    <Setter Property="Stroke" TargetName="InnerBorder" Value="#50FFFFFF"/>
                </Trigger>
                <Trigger Property="IsKeyboardFocused" Value="true">
                    <Setter Property="Stroke" TargetName="Bg" Value="#E0717070"/>
                    <Setter Property="Fill" TargetName="Bg" Value="{StaticResource MenuItemPressedFill}"/>
                    <Setter Property="Stroke" TargetName="InnerBorder" Value="#50747272"/>
                </Trigger>
                <Trigger Property="IsEnabled" Value="false">
                    <Setter Property="Foreground" Value="#FF9A9A9A"/>
                    <Setter Property="Fill" TargetName="GlyphPanel" Value="#848589"/>
                </Trigger>
            </ControlTemplate.Triggers>
        </ControlTemplate>
        <Geometry x:Key="RightArrow">M 0,0 L 4,3.5 L 0,7 Z</Geometry>
        <ControlTemplate x:Key="{ComponentResourceKey ResourceId=SubmenuHeaderTemplateKey, TypeInTargetAssembly={x:Type MenuItem}}" TargetType="{x:Type MenuItem}">
            <Grid SnapsToDevicePixels="true">
                <Rectangle x:Name="Bg" Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="1" RadiusX="2" RadiusY="2"/>
                <Rectangle Margin="1" x:Name="InnerBorder" Stroke="Transparent" StrokeThickness="1" RadiusX="2" RadiusY="2"/>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition MinWidth="24" Width="Auto" SharedSizeGroup="MenuItemIconColumnGroup"/>
                        <ColumnDefinition Width="4"/>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="37"/>
                        <ColumnDefinition Width="Auto" SharedSizeGroup="MenuItemIGTColumnGroup"/>
                        <ColumnDefinition Width="17"/>
                    </Grid.ColumnDefinitions>
                    <ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Margin="1" x:Name="Icon" VerticalAlignment="Center" ContentSource="Icon"/>
                    <Border Visibility="Hidden" Margin="1" x:Name="GlyphPanel" Width="22" Height="22" Background="#E6EFF4" BorderBrush="#CDD3E6" BorderThickness="1" CornerRadius="3">
                        <Path FlowDirection="LeftToRight" x:Name="Glyph" Width="9" Height="11" Fill="#0C12A1" Data="{StaticResource Checkmark}"/>
                    </Border>
                    <ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Margin="{TemplateBinding Padding}" Grid.Column="2" ContentSource="Header" RecognizesAccessKey="True"/>
                    <TextBlock Visibility="Collapsed" Margin="{TemplateBinding Padding}" Grid.Column="4" Text="{TemplateBinding InputGestureText}"/>
					<Path Margin="4,0,0,0" VerticalAlignment="Center" Fill="{TemplateBinding Foreground}" Grid.Column="5" Data="{StaticResource RightArrow}"/>
				</Grid>
                <Popup Focusable="false" AllowsTransparency="true" HorizontalOffset="-2" IsOpen="{Binding Path=IsSubmenuOpen, RelativeSource={RelativeSource TemplatedParent}}" Placement="Right" PopupAnimation="{DynamicResource {x:Static SystemParameters.MenuPopupAnimationKey}}" VerticalOffset="-3" x:Name="PART_Popup">
                    <Microsoft_Windows_Themes:SystemDropShadowChrome x:Name="Shdw" Color="Transparent">
                        <ContentControl IsTabStop="false" Template="{DynamicResource {ComponentResourceKey ResourceId=SubmenuContent, TypeInTargetAssembly={x:Type FrameworkElement}}}" x:Name="SubMenuBorder">
                            <ScrollViewer Style="{DynamicResource {ComponentResourceKey ResourceId=MenuScrollViewer, TypeInTargetAssembly={x:Type FrameworkElement}}}" CanContentScroll="true">
                                <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Margin="2" Grid.IsSharedSizeScope="true" KeyboardNavigation.DirectionalNavigation="Cycle" KeyboardNavigation.TabNavigation="Cycle"/>
                            </ScrollViewer>
                        </ContentControl>
                    </Microsoft_Windows_Themes:SystemDropShadowChrome>
                </Popup>
            </Grid>
            <ControlTemplate.Triggers>
                <Trigger Property="IsSuspendingPopupAnimation" Value="true">
                    <Setter Property="PopupAnimation" TargetName="PART_Popup" Value="None"/>
                </Trigger>
                <Trigger Property="IsHighlighted" Value="true">
                    <Setter Property="Stroke" TargetName="InnerBorder" Value="#D1DBF4FF"/>
                </Trigger>
                <Trigger Property="Icon" Value="{x:Null}">
                    <Setter Property="Visibility" TargetName="Icon" Value="Collapsed"/>
                </Trigger>
                <Trigger Property="IsChecked" Value="true">
                    <Setter Property="Visibility" TargetName="GlyphPanel" Value="Visible"/>
                    <Setter Property="Visibility" TargetName="Icon" Value="Collapsed"/>
                </Trigger>
                <Trigger Property="HasDropShadow" SourceName="PART_Popup" Value="true">
                    <Setter Property="Margin" TargetName="Shdw" Value="0,0,5,5"/>
                    <Setter Property="Color" TargetName="Shdw" Value="#71000000"/>
                </Trigger>
                <Trigger Property="IsHighlighted" Value="true">
                    <Setter Property="Fill" TargetName="Bg" Value="{StaticResource MenuItemSelectionFill}"/>
                    <Setter Property="Stroke" TargetName="Bg" Value="#8571CBF1"/>
                </Trigger>
                <Trigger Property="IsEnabled" Value="false">
                    <Setter Property="Foreground" Value="#FF9A9A9A"/>
                    <Setter Property="Background" TargetName="GlyphPanel" Value="#EEE9E9"/>
                    <Setter Property="BorderBrush" TargetName="GlyphPanel" Value="#DBD6D6"/>
                    <Setter Property="Fill" TargetName="Glyph" Value="#848589"/>
                </Trigger>
            </ControlTemplate.Triggers>
        </ControlTemplate>
        <Style x:Key="Item" TargetType="{x:Type MenuItem}">
            <Setter Property="HorizontalContentAlignment" Value="{Binding Path=HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
            <Setter Property="VerticalContentAlignment" Value="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
            <Setter Property="Background" Value="Transparent"/>
            <Setter Property="Template" Value="{DynamicResource {ComponentResourceKey ResourceId=SubmenuItemTemplateKey, TypeInTargetAssembly={x:Type MenuItem}}}"/>
            <Style.Triggers>
                <Trigger Property="Role" Value="TopLevelHeader">
                    <Setter Property="Padding" Value="7,2,8,3"/>
                    <Setter Property="Template" Value="{DynamicResource {ComponentResourceKey ResourceId=TopLevelHeaderTemplateKey, TypeInTargetAssembly={x:Type MenuItem}}}"/>
                </Trigger>
                <Trigger Property="Role" Value="TopLevelItem">
                    <Setter Property="Padding" Value="7,2,8,3"/>
                    <Setter Property="Template" Value="{DynamicResource {ComponentResourceKey ResourceId=TopLevelItemTemplateKey, TypeInTargetAssembly={x:Type MenuItem}}}"/>
                </Trigger>
                <Trigger Property="Role" Value="SubmenuHeader">
                    <Setter Property="Padding" Value="2,3,2,3"/>
                    <Setter Property="Template" Value="{DynamicResource {ComponentResourceKey ResourceId=SubmenuHeaderTemplateKey, TypeInTargetAssembly={x:Type MenuItem}}}"/>
                </Trigger>
                <Trigger Property="Role" Value="SubmenuItem">
                    <Setter Property="Padding" Value="2,3,2,3"/>
                </Trigger>
            </Style.Triggers>
        </Style>
        <Style x:Key="Salvardoc" BasedOn="{x:Null}" TargetType="{x:Type Button}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type Button}">
                        <ControlTemplate.Resources>
                            <Storyboard x:Key="Over">
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)" RepeatBehavior="Forever">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF7B98B5"/>
                                    <SplineColorKeyFrame KeyTime="00:00:01" Value="#FFDCEEFF"/>
                                    <SplineColorKeyFrame KeyTime="00:00:02" Value="#FF7B98B5"/>
                                </ColorAnimationUsingKeyFrames>
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" RepeatBehavior="Forever">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF33495E"/>
                                    <SplineColorKeyFrame KeyTime="00:00:01" Value="#FF73A4D2"/>
                                    <SplineColorKeyFrame KeyTime="00:00:02" Value="#FF33495E"/>
                                </ColorAnimationUsingKeyFrames>
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" RepeatBehavior="Forever">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF000000"/>
                                    <SplineColorKeyFrame KeyTime="00:00:01" Value="#FF2D3945"/>
                                    <SplineColorKeyFrame KeyTime="00:00:02" Value="#FF000000"/>
                                </ColorAnimationUsingKeyFrames>
                            </Storyboard>
                            <Storyboard x:Key="Stroke">
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF707070"/>
                                    <SplineColorKeyFrame KeyTime="00:00:01" Value="#FFC7F8FF"/>
                                </ColorAnimationUsingKeyFrames>
                            </Storyboard>
                            <Storyboard x:Key="Click1">
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Path_Copy1" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#BF000000"/>
                                </ColorAnimationUsingKeyFrames>
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Path_Copy1" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#00000000"/>
                                </ColorAnimationUsingKeyFrames>
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF0F1214"/>
                                </ColorAnimationUsingKeyFrames>
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF353E47"/>
                                </ColorAnimationUsingKeyFrames>
                            </Storyboard>
                        </ControlTemplate.Resources>
                        <Grid x:Name="grid">
                            <Path x:Name="Path" Stretch="Fill" StrokeLineJoin="Round" Stroke="#FF707070" Data="F1 M 266.115,187L 320.115,187C 321.588,187 322.781,188.194 322.781,189.667L 322.781,243.667C 322.781,245.139 321.588,246.333 320.115,246.333L 266.115,246.333C 264.642,246.333 263.448,245.139 263.448,243.667L 263.448,189.667C 263.448,188.194 264.642,187 266.115,187 Z " Margin="0,0,0,0" StrokeThickness="1">
                                <Path.Fill>
                                    <LinearGradientBrush EndPoint="0.496548,0.0128917" StartPoint="0.496548,0.988029">
                                        <GradientStop Color="#FF000000" Offset="0"/>
                                        <GradientStop Color="#FF33495E" Offset="0.278539"/>
                                        <GradientStop Color="#FF7B98B5" Offset="0.296804"/>
                                        <GradientStop Color="#FF181818" Offset="1"/>
                                    </LinearGradientBrush>
                                </Path.Fill>
                            </Path>
                            <Path x:Name="Path_Copy1" Stretch="Fill" Data="F1 M 266.212,186.907L 320.018,186.907C 321.49,186.907 322.684,188.101 322.684,189.574L 322.684,207.444C 322.684,208.917 321.49,210.111 320.018,210.111L 266.212,210.111C 264.739,210.111 263.545,208.917 263.545,207.444L 263.545,189.574C 263.545,188.101 264.739,186.907 266.212,186.907 Z " Margin="0.5,0.5,0.5,24.333" VerticalAlignment="Stretch" Height="Auto">
                                <Path.Fill>
                                    <LinearGradientBrush StartPoint="0.517483,0.405595" EndPoint="0.517483,-0.00699292">
                                        <GradientStop Color="#00FFFFFF" Offset="0"/>
                                        <GradientStop Color="#BFFFFFFF" Offset="1"/>
                                    </LinearGradientBrush>
                                </Path.Fill>
                            </Path>
                            <Image Margin="10.5,8,9.757,0" Source="Images\salvardoc.png" Stretch="Fill"/>
                        </Grid>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsPressed" Value="True">
                                <Trigger.EnterActions>
                                    <BeginStoryboard Storyboard="{StaticResource Click1}" x:Name="Click1_BeginStoryboard"/>
                                </Trigger.EnterActions>
                                <Trigger.ExitActions>
                                    <StopStoryboard BeginStoryboardName="Click1_BeginStoryboard"/>
                                </Trigger.ExitActions>
                            </Trigger>
                            <Trigger Property="IsMouseOver" SourceName="grid" Value="True">
                                <Trigger.EnterActions>
                                    <BeginStoryboard x:Name="Over_BeginStoryboard" Storyboard="{StaticResource Over}"/>
                                    <BeginStoryboard Storyboard="{StaticResource Stroke}" x:Name="Stroke_BeginStoryboard"/>
                                </Trigger.EnterActions>
                                <Trigger.ExitActions>
                                    <StopStoryboard BeginStoryboardName="Over_BeginStoryboard"/>
                                    <StopStoryboard BeginStoryboardName="Over_BeginStoryboard"/>
                                    <StopStoryboard BeginStoryboardName="Stroke_BeginStoryboard"/>
                                </Trigger.ExitActions>
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="imprimir" BasedOn="{x:Null}" TargetType="{x:Type Button}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type Button}">
                        <ControlTemplate.Resources>
                            <Storyboard x:Key="Over">
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)" RepeatBehavior="Forever">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF7B98B5"/>
                                    <SplineColorKeyFrame KeyTime="00:00:01" Value="#FFDCEEFF"/>
                                    <SplineColorKeyFrame KeyTime="00:00:02" Value="#FF7B98B5"/>
                                </ColorAnimationUsingKeyFrames>
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" RepeatBehavior="Forever">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF33495E"/>
                                    <SplineColorKeyFrame KeyTime="00:00:01" Value="#FF73A4D2"/>
                                    <SplineColorKeyFrame KeyTime="00:00:02" Value="#FF33495E"/>
                                </ColorAnimationUsingKeyFrames>
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" RepeatBehavior="Forever">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF000000"/>
                                    <SplineColorKeyFrame KeyTime="00:00:01" Value="#FF2D3945"/>
                                    <SplineColorKeyFrame KeyTime="00:00:02" Value="#FF000000"/>
                                </ColorAnimationUsingKeyFrames>
                            </Storyboard>
                            <Storyboard x:Key="Stroke">
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF707070"/>
                                    <SplineColorKeyFrame KeyTime="00:00:01" Value="#FFC7F8FF"/>
                                </ColorAnimationUsingKeyFrames>
                            </Storyboard>
                            <Storyboard x:Key="Click1">
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Path_Copy1" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#BF000000"/>
                                </ColorAnimationUsingKeyFrames>
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Path_Copy1" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#00000000"/>
                                </ColorAnimationUsingKeyFrames>
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF0F1214"/>
                                </ColorAnimationUsingKeyFrames>
                                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Path" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)">
                                    <SplineColorKeyFrame KeyTime="00:00:00" Value="#FF353E47"/>
                                </ColorAnimationUsingKeyFrames>
                            </Storyboard>
                        </ControlTemplate.Resources>
                        <Grid x:Name="grid">
                            <Path x:Name="Path" Stretch="Fill" StrokeLineJoin="Round" Stroke="#FF707070" Data="F1 M 266.115,187L 320.115,187C 321.588,187 322.781,188.194 322.781,189.667L 322.781,243.667C 322.781,245.139 321.588,246.333 320.115,246.333L 266.115,246.333C 264.642,246.333 263.448,245.139 263.448,243.667L 263.448,189.667C 263.448,188.194 264.642,187 266.115,187 Z " Margin="0,0,0,0" StrokeThickness="1">
                                <Path.Fill>
                                    <LinearGradientBrush EndPoint="0.496548,0.0128917" StartPoint="0.496548,0.988029">
                                        <GradientStop Color="#FF000000" Offset="0"/>
                                        <GradientStop Color="#FF33495E" Offset="0.278539"/>
                                        <GradientStop Color="#FF7B98B5" Offset="0.296804"/>
                                        <GradientStop Color="#FF181818" Offset="1"/>
                                    </LinearGradientBrush>
                                </Path.Fill>
                            </Path>
                            <Path x:Name="Path_Copy1" Stretch="Fill" Data="F1 M 266.212,186.907L 320.018,186.907C 321.49,186.907 322.684,188.101 322.684,189.574L 322.684,207.444C 322.684,208.917 321.49,210.111 320.018,210.111L 266.212,210.111C 264.739,210.111 263.545,208.917 263.545,207.444L 263.545,189.574C 263.545,188.101 264.739,186.907 266.212,186.907 Z " Margin="0.5,0.5,0.5,24.333" VerticalAlignment="Stretch" Height="Auto">
                                <Path.Fill>
                                    <LinearGradientBrush StartPoint="0.517483,0.405595" EndPoint="0.517483,-0.00699292">
                                        <GradientStop Color="#00FFFFFF" Offset="0"/>
                                        <GradientStop Color="#BFFFFFFF" Offset="1"/>
                                    </LinearGradientBrush>
                                </Path.Fill>
                            </Path>
                            <Image Margin="6.5,7,6.783,-8.9" Source="Images\impressora.png" Stretch="Fill"/>
                        </Grid>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsPressed" Value="True">
                                <Trigger.EnterActions>
                                    <BeginStoryboard Storyboard="{StaticResource Click1}" x:Name="Click1_BeginStoryboard"/>
                                </Trigger.EnterActions>
                                <Trigger.ExitActions>
                                    <StopStoryboard BeginStoryboardName="Click1_BeginStoryboard"/>
                                </Trigger.ExitActions>
                            </Trigger>
                            <Trigger Property="IsMouseOver" SourceName="grid" Value="True">
                                <Trigger.EnterActions>
                                    <BeginStoryboard x:Name="Over_BeginStoryboard" Storyboard="{StaticResource Over}"/>
                                    <BeginStoryboard Storyboard="{StaticResource Stroke}" x:Name="Stroke_BeginStoryboard"/>
                                </Trigger.EnterActions>
                                <Trigger.ExitActions>
                                    <StopStoryboard BeginStoryboardName="Over_BeginStoryboard"/>
                                    <StopStoryboard BeginStoryboardName="Over_BeginStoryboard"/>
                                    <StopStoryboard BeginStoryboardName="Stroke_BeginStoryboard"/>
                                </Trigger.ExitActions>
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </Window.Resources>
    <Grid>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="180"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="180"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="105.468"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <Grid Grid.ColumnSpan="3">

            <Rectangle Margin="2,2,2,0" Fill="#FF494B4D" Stroke="#FF6C6C6C" StrokeThickness="3" RadiusX="5" RadiusY="5" VerticalAlignment="Top" Height="25"/>

            <Rectangle Margin="2,30,2,2" Fill="#FF494B4D" Stroke="#FF6C6C6C" StrokeThickness="3" RadiusX="5" RadiusY="5"/>

            <Button HorizontalAlignment="Left" Style="{DynamicResource novo}" Width="60" Height="60" x:Name="Novo" Margin="8,36.734,0,8.734" ToolTip="Novo" Click="Novo_Click"/>

            <Button HorizontalAlignment="Left" Style="{DynamicResource btopen}" Width="60" Height="60" x:Name="Abrir" Margin="72,36.734,0,8.734" ToolTip="Abrir" Click="Abrir_Click"/>

            <Button HorizontalAlignment="Left" Style="{DynamicResource Salvar}" Width="60" Height="60" x:Name="Salvar" Margin="136,36.734,0,8.734" ToolTip="Salvar" Click="Salvar_Click"/>

            <Button Style="{DynamicResource Salvardoc}" Click="SalvarDoc_Click" Width="60" x:Name="SalvarDoc" HorizontalAlignment="Left" Margin="200,36.734,0,8.734" ToolTip="Salvar Documento" Visibility="Hidden"/>

            <Button Style="{DynamicResource imprimir}" Click="Imprimir_Click" Width="60" x:Name="Imprimir" HorizontalAlignment="Left" Margin="264,36.734,0,8.734" ToolTip="Imprimir" Visibility="Hidden"/>

            <Menu Margin="1.5,3.6,2.5,0" VerticalAlignment="Top" Height="23" Style="{DynamicResource Menu}">
                <MenuItem Header="_Arquivo" Foreground="#FFFFFFFF" Height="23.46" Width="Auto" Margin="2,0,2,0" Style="{DynamicResource Item}">
                    <MenuItem Header="_Novo Arquivo" Foreground="#FF000000" x:Name="Novo1"/>
                    <MenuItem Header="_Abrir" Foreground="#FF000000" x:Name="Abrir1"/>
                    <MenuItem x:Name="Salvar1" Header="_Salvar" Foreground="#FF000000"/>
                </MenuItem>
                <MenuItem Header="_Editar" Foreground="#FFFFFFFF" Style="{DynamicResource Item}">
                    <MenuItem Header="_Desfazer" Foreground="#FF000000"/>
                    <Separator/>
                    <MenuItem Header="_Cortar" Foreground="#FF000000"/>
                    <MenuItem Header="_Copiar" Foreground="#FF000000"/>
                    <MenuItem Header="_Colar" Foreground="#FF000000"/>
                </MenuItem>
            </Menu>
        </Grid>

        <Grid Grid.Row="1">
            <Grid.RowDefinitions>
                <RowDefinition Height="0.499*"/>
                <RowDefinition Height="0.501*"/>
            </Grid.RowDefinitions>

            <GridSplitter Margin="0,0,0,-2" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Height="4" d:LayoutOverrides="Height" Style="{DynamicResource Divisor}">
                <GridSplitter.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                        <SkewTransform AngleX="0" AngleY="0"/>
                        <RotateTransform Angle="0"/>
                        <TranslateTransform X="0" Y="0"/>
                    </TransformGroup>
                </GridSplitter.RenderTransform>
            </GridSplitter>

            <Rectangle Fill="#FF494B4D" Stroke="#FF6C6C6C" RadiusX="5" RadiusY="5" StrokeThickness="3" VerticalAlignment="Stretch" Margin="2,2,2,2"/>

            <Rectangle Fill="#FF494B4D" Stroke="#FF6C6C6C" RadiusX="5" RadiusY="5" StrokeThickness="3" Margin="2,2,2,2" Grid.Row="1"/>

            <TextBox Name="ttbDescription" AcceptsReturn="True"  RenderTransformOrigin="0.5,0.5" Background="#FFE4ECF2" Margin="8,26,8,8" TextWrapping="Wrap" TextDecorations="None" Grid.Row="1" TextChanged="ttbDescription_TextChanged">
                <TextBox.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                        <SkewTransform AngleX="0" AngleY="0"/>
                        <RotateTransform Angle="0"/>
                        <TranslateTransform X="0" Y="0"/>
                    </TransformGroup>
                </TextBox.RenderTransform>
            </TextBox>

            <Label Content="Descrição" Margin="8,2,8,0" Foreground="#FFFFFFFF" VerticalAlignment="Top" Height="25" Grid.Row="1"/>

            <ScrollViewer Margin="8,26,8,8" x:Name="slvScreens" RenderTransformOrigin="0.5,0.5" Background="#FFE4ECF2">

                <ScrollViewer.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                        <SkewTransform AngleX="0" AngleY="0"/>
                        <RotateTransform Angle="0"/>
                        <TranslateTransform X="0" Y="0"/>
                    </TransformGroup>
                </ScrollViewer.RenderTransform>
                <TreeView x:Name="tevScreens" SelectedItemChanged="tevScreens_SelectedItemChanged">
                    <TreeView.ItemTemplate >
                        <HierarchicalDataTemplate>
                            <StackPanel MouseMove="tevScreenItems_MouseMove" >
                                <TextBlock Text="{Binding Path=Name}"/>
                                <StackPanel.ContextMenu>                                    
                                    <ContextMenu>
                                        <MenuItem Header="Nova Tela" Click="MenuItem_Click"/>
                                        <MenuItem Header="Delete" Click="MenuItem_Click" IsEnabled="False"/>                                        
                                    </ContextMenu>
                                </StackPanel.ContextMenu>
                                </StackPanel>
                        </HierarchicalDataTemplate>
                    </TreeView.ItemTemplate>
                    <TreeView.ContextMenu>
                        <ContextMenu>
                            <MenuItem Header="Nova Tela" Click="MenuItem_Click"/>
                        </ContextMenu>
                    </TreeView.ContextMenu>
                </TreeView>
            </ScrollViewer>

            <Label Content="Telas" VerticalAlignment="Top" Height="25" Foreground="#FFFFFFFF" Background="{x:Null}" Margin="8,2,8,0"/>

        </Grid>

        <Grid Grid.Column="2" Grid.Row="1">

            <Grid.RowDefinitions>
                <RowDefinition Height="0.501*"/>
                <RowDefinition Height="0.499*"/>
            </Grid.RowDefinitions>

            <Rectangle Margin="2,2,2,2" Fill="#FF494B4D" Stroke="#FF6C6C6C" StrokeThickness="3" RadiusX="5" RadiusY="5" VerticalAlignment="Stretch" Height="Auto"/>

            <Rectangle Fill="#FF494B4D" Stroke="#FF6C6C6C" StrokeThickness="3" RadiusX="5" RadiusY="5" Margin="2,2,2,2" Grid.Row="1"/>

            <GridSplitter HorizontalAlignment="Stretch" Margin="0,0,0,-2" Style="{DynamicResource Divisor}" VerticalAlignment="Bottom" Height="4"/>

            <WindowsFormsHost Margin="8,26,8,8" Grid.Row="1">
                <wf:PropertyGrid x:Name="pygProperties"/>
            </WindowsFormsHost>

            <Label Height="Auto" Content="Propriedades" Margin="8,2,8,0" Foreground="#FFFFFFFF" d:LayoutOverrides="Height" VerticalAlignment="Top" Grid.Row="1"/>

            <ListView x:Name="ltvControlList" IsEnabled="False" RenderTransformOrigin="0.5,0.5" Background="#FFE4ECF2" Margin="8,26,8,8">
                <ListView.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                        <SkewTransform AngleX="0" AngleY="0"/>
                        <RotateTransform Angle="0"/>
                        <TranslateTransform X="0" Y="0"/>
                    </TransformGroup>
                </ListView.RenderTransform>
            </ListView>

            <Label Content="Controles" Margin="8,2,8,0" Foreground="#FFFFFFFF" HorizontalAlignment="Stretch" VerticalAlignment="Top" Height="Auto"/>

        </Grid>

        <Rectangle Margin="2,2,2,2" Fill="#FF494B4D" Stroke="#FF6C6C6C" StrokeThickness="3" RadiusX="5" RadiusY="5" Grid.Column="1" Grid.Row="1"/>
        <TabControl Name="tbcControler" Margin="8,7.998,8,8.002" Grid.Column="1" Grid.Row="1" SelectionChanged="TabControl_SelectionChanged">
            <TabItem  Name="tbiEdit" Header="Editar">
                <Grid Background="#FF494B4D">
                    <ScrollViewer HorizontalScrollBarVisibility="Visible" VerticalScrollBarVisibility="Visible">
                        <Grid Name="BlackboardGrid" Width="800" Height="600" Background="#FF494B4D" >
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
                            <Grid Grid.Row="0" HorizontalAlignment="Stretch" VerticalAlignment="Top" d:LayoutOverrides="HorizontalAlignment, GridBox">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                    <ColumnDefinition Width="Auto"/>
                                </Grid.ColumnDefinitions>

                                <Image Grid.Column="0" Name="leftImageBlackboard"/>
                                <Image Grid.Column="1" Stretch="Fill" Name="middleImageBlackboard"/>
                                <Image Grid.Column="2" Name="rightImageBlackboard"/>
                            </Grid>

                            <Canvas Grid.Row="1" x:Name="Blackboard" ForceCursor="True" MouseDown="Blackboard_MouseDown" MouseMove="Blackboard_MouseMove"  Background="#FF494B4D" ClipToBounds="True" VerticalAlignment="Stretch"/>
                        </Grid>
                    </ScrollViewer>
                </Grid>
            </TabItem>
            <TabItem Name="tbiPreview" Header="Preview">
                <Grid Background="#FF494B4D">
                    <ScrollViewer HorizontalScrollBarVisibility="Visible" VerticalScrollBarVisibility="Visible">
                        <Grid Name="PreviewGrid" Width="800" Height="600" >
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
                            <Grid Grid.Row="0" HorizontalAlignment="Stretch" VerticalAlignment="Top" d:LayoutOverrides="HorizontalAlignment, GridBox">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                    <ColumnDefinition Width="Auto"/>
                                </Grid.ColumnDefinitions>
                                <Image Grid.Column="0" Name="leftImagePreview"/>
                                <Image Grid.Column="1" Stretch="Fill" Name="middleImagePreview"/>
                                <Image Grid.Column="2" Name="rightImagePreview"/>
                            </Grid>

                            <Canvas Grid.Row="1" x:Name="cvsPreview"  ForceCursor="True" Background="#FF494B4D" d:IsHidden="True" ClipToBounds="True"/>

                        </Grid>
                    </ScrollViewer>
                </Grid>
            </TabItem>
            <TabItem Name="tbiWorkflow" Header="Workflow">
                <Canvas x:Name="cvsWorkflow" Width="800" Height="600"  ForceCursor="True" MouseDown="Blackboard_MouseDown" MouseMove="Blackboard_MouseMove" Background="#FF494B4D" d:IsHidden="True" ClipToBounds="True"/>
            </TabItem>
            <TabItem Name="tbiReport" Header="Report">
                <FlowDocumentScrollViewer Name="ReportViewer">

                </FlowDocumentScrollViewer>
            </TabItem>
        </TabControl>


        <GridSplitter Width="2" Grid.Row="1" Style="{DynamicResource Divisor}" Margin="0,0,-1,0"/>

        <GridSplitter Width="2" Style="{DynamicResource Divisor}" Margin="0,0,0,0" Grid.Column="2" Grid.Row="1" DragIncrement="1" VerticalAlignment="Stretch" d:LayoutOverrides="Width" HorizontalAlignment="Left"/>

    </Grid>
</Window>
